package com.gxy.learn.design.model.create.prototype.shallowclone;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: gaoxueyong
 * @Date: 2022/11/7 12:09
 */
@Slf4j
public class Citation implements Cloneable {

    private Student student;

    public Citation() {
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }

    public void show(){
        log.info("{}同学：在2022年中第一学期表现优秀，被评为三好学生。特发此状！",student.getName());
    }
}
